package com.cade.agriculturemall.model;

import com.avos.avoscloud.AVClassName;
import com.avos.avoscloud.AVObject;
import com.cade.agriculturemall.view.personalCenter.discount.storeDiscountFragment.StoreDiscountAdapter;

import java.util.Date;

/**
 * Created by hshunxin on 2018/2/26.
 */

@AVClassName("ticket_discount")
public class Ticket extends AVObject {
    String money;
    String content;
    Date startTime;
    Date endTime;

    public String getMoney() {
        return getString("money");
    }

    public void setMoney(String money) {
        put("money", money);
    }

    public String getContent() {
        return getString("content");
    }

    public void setContent(String content) {
        put("content", content);
    }

    public Date getStartTime() {
        return getDate("start_time");
    }

    public void setStartTime(Date startTime) {
        put("start_time", startTime);
    }

    public Date getEndTime() {
        return getDate("end_time");
    }

    public void setEndTime(Date endTime) {
        put("end_time", endTime);
    }

    public String getUserId() {
        return getString("user_id");
    }

    public void setUserId(String userId) {
        put("user_id", userId);
    }

    public String getCondition() {
        return getString("condition");
    }

    public void setCondition(String condition) {
        put("type", condition);
    }

    public String getType() {
        return getString("type");
    }

    public void setType(String type) {
        put("type", type);
    }

    //0:待使用
    //1:已使用
    //userid:绑定(待支付)
    public String getHadUse() {
        return getString("had_use");
    }

    public void setHadUse(String hasUse) {
        put("had_use", hasUse);
    }
}
